import Vue from 'vue'
import VueRouter from 'vue-router'
import HomePage from "@/views/HomePage.vue";
import EditPage from "@/views/EditPage.vue";
import AddPage from "@/views/AddPage.vue";

Vue.use(VueRouter)
const routes = [
    {
        path: '/',
        name: 'home',
        component: HomePage
    },
    {
        path: '/edit',
        name: 'editBook',
        component: EditPage
    },
    {
        path: '/add',
        name: 'addBook',
        component: AddPage
    },
]
const router = new VueRouter({
    routes
})
export default router